from django.conf.urls.defaults import *
from coatl.blog.models import Post
import views

dictionary  = {'queryset':Post.objects.all(), 'date_field':'date' }

#info_dict = {
#    'queryset': Post.objects.filter(status=1),
#    'date_field': 'pub_date',
#    }

urlpatterns = patterns('django.views.generic.date_based',
  (r'^$', 'archive_index', dictionary),
  (r'^display/$', views.display),
  (r'^view/(\d{1,4})/$', views.view)
)
